package com.central.common.entity

import com.baomidou.mybatisplus.annotation.TableName
import com.central.common.enum.PostTypeEnum
import com.central.common.model.SuperEntity
import java.io.Serializable

/**
 * 帖子实体
 * @author  fly
 * @date  2021/5/26 14:16
 * @version 1.0
 */
@TableName("fly_post")
open class Post(


    /**
     * 上级id(话题贴)
     */
    var pid: Long? = 0L,

    /**
     * 发布内容
     */
    var content: String? = "",

    /**
     * 发布图片
     */
    var pics: String? = null,

    /**
     * 经度
     */
    var longitude: String? = "0.0",

    /**
     * 维度
     */
    var latitude: String? = "0.0",

    /**
     * 发布的城市编码
     */
    var cityCode: String? = "0",

    /**
     * 发布详细地址
     */
    var publishAddress: String? = "",

    /**
     * 发布类型(默认帖子类型)
     */
    var postType: Int? = PostTypeEnum.POST.code,

    /**
     * 总分(话题)
     */
    var totalScore: Double? = 5.0,

    /**
     * 质量分数(话题)
     */
    var qualityScore: Double? = 5.0,

    /**
     * 面料分数(话题)
     */
    var liningScore: Double? = 5.0,

    /**
     * 版型分数(话题)
     */
    var modelScore: Double? = 5.0,

    ): SuperEntity<Post>(), Serializable {

    companion object {
        const val serialVersionUID = 749360940290141180L
    }
}